#ifndef MODEL_H
#define MODEL_H

#include <QtCore>
#include "Clazz.h"
#include "Attribute.h"
#include "AccessModifier.h"
#include "Method.h"

class Model: public XMLSerializable
{    
    private:
        Model(QMap<QString, Clazz*>* tree);
        QMap<QString, Clazz*> clazzes;
        static Model *instance;

    public:
        static Model* getInstance(QMap<QString, Clazz*>* tree);
        QMap<QString, Clazz*> getClazzes();
        void setClazzes(QMap<QString, Clazz*>);
        QString toXml();
};

#endif // MODEL_H
